package com.jml.mapper;

import com.jml.entity.JmlConfigEntity;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;


public interface JmlConfigMapper {
    @Select("SELECT * FROM jml_config WHERE NAME=#{name};")
    JmlConfigEntity getByConfigName(String name);

    @Update("update  jml_config set md5=#{newMd5} where id=#{configId}")
    int updateMd5(@Param("newMd5") String newMd5, @Param("configId") String configId);
}
